package demo513;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Scanner;

public class Test {


    public static void main(String[] args) throws IOException {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入你需要创建的文件名称：");
        String filename = scanner.next();
        System.out.println("请输入你保存的数据：");
        String data = scanner.next();
        TestFile  testFile = new TestFile();
        testFile.setData(filename, data);
        System.out.println("请输入你需要获取那个文件的数据：");
        testFile.getData(scanner.next());
    }
}